package cn.wolfcode.wolf.user.controller;

import cn.wolfcode.wolf.auth.anno.RequireLogin;
import cn.wolfcode.wolf.user.service.SmsService;
import cn.wolfcode.wolf.core.utils.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sms")
public class SmsController {

    final
    SmsService smsService;

    public SmsController(SmsService smsService) {
        this.smsService = smsService;
    }


    @PostMapping("/register")
    public Result<?> registerVerify(String phone){
        smsService.registerSmsSend(phone);
        return Result.success("发送成功");
    }

}
